<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>我的课程表</title>
    <link rel="stylesheet" type="text/css" href="/common/jquery-easyui-1.5.5.7/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/common/jquery-easyui-1.5.5.7/themes/icon.css">
</head>
<body>
<div id="cc" class="easyui-calendar" fit="true"></div>
<script type="text/javascript" src="/common/jquery-easyui-1.5.5.7/jquery.min.js"></script>
<script type="text/javascript" src="/common/jquery-easyui-1.5.5.7/jquery.easyui.min.js"></script>
<script>
    $('#cc').calendar({
        onSelect: function(date){
            var queryDay=date.getFullYear()+"-"+fmtNumToStr((date.getMonth()+1))+"-"+fmtNumToStr(date.getDate());
            window.location.href="/com/imelite/qyh/JsAction/getMyCourse.do?queryDay="+queryDay;
        }
    });

    function fmtNumToStr(num){
        if(num<10){
            return "0"+num;
        }
        return num;
    }
</script>
</body>
</html>
